#!/usr/bin/python
# -*- coding:utf-8 -*-
# @author  : xuexiaohua
# @time    : 2025/8/23 15:38
# @function: the script is used to do something.
# @version :
from netPan123.apis.base_api import BaseApi
from netPan123.utils import yaml_util

class SignInApi(BaseApi):
    def __init__(self):
        module_key = "sign_in"
        self.url = yaml_util.get_url_by_key(module_key)
        self.method = "POST"
        self.headers = {"Content-Type": "application/json"}

    def sign_in(self, json_data):
        req = {
            "method": self.method,
            "url": self.url,
            "headers": self.headers,
            "json": json_data
        }
        r = self.send_api(req)
        return r





